*,
p {
    margin: 0;
    padding: 0;
}

a,
a:visited {
    color: #000;
}

ul {
    margin: 0;
    padding: 0;
}

.w {
    width: 1200px;
    margin: 0 auto;
}

body {
    background-color: #ececec;
    background: url(../img/background.jpg) repeat-x 300px 239px;
}

/*header部分 */

.header {
    background-color: #fff;
    height: 60px;
    border-bottom: 1px solid #c4c4c4;
}

.header .logo {
    float: left;
    width: 120px;
    height: auto;
}

.header .logo img {
    width: 100%;
    height: 100%;
    margin-top: 11px;
}

.header .nav,
.header ul li {
    float: left;
}

.header ul li {
    margin: 0 15px;
    font-size: 13px;
    height: 40px;
    line-height: 40px;
    margin-top: 5px;
}

.header ul li ul {
    position: absolute;
    left: -9999px;
    margin-top: 2px;
    width: 140px;
    height: 120px;
    background-color: #d5d5d5;
    /* display: flex;
    flex-direction: column;
    justify-content: space-around; */
    float: none;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
    z-index: 9999;
    background-color: #e2e2e2;

}

.header ul li:hover {
    border-bottom: 2px solid #4d4945;
}

.header ul li:nth-child(4):hover ul {
    left: auto;
    transition: left .5s .5s;
}

.header ul li ul li,
.nav ul li ul li:hover {
    height: 30px;
    line-height: 30px;
    margin-top: 0;
    float: none;
    border-bottom: 0;
    margin: 0;
    padding-left: 20px;
}

.header ul li ul li:hover {
    background-color: #b8b8b8;
}

.header ul li ul li a {
    display: block;
    width: 100%;
    font-weight: 400;
    font-size: 12px;
}

.header .search {
    float: right;
}

.header .search {
    margin-top: 12px;
    position: relative;
}

.header .search input {
    font-size: 12px;
    color: rgb(143, 138, 138);
    width: 200px;
    height: 30px;
    margin-right: 45px;
    padding-left: 5px;

}

.header .search .icon-large {
    position: absolute;
    top: 0;
    left: 200px;
    width: 40px;
    height: 30px;
    background-color: #ec0c3c;
    color: #fff;
    border: 1px solid rgb(255, 50, 84);
    border-radius: 1px;
    text-align: center;
    line-height: 24px;

}

.header .search .icon-shopping-cart {
    display: inline-block;
    font-size: 20px;
    color: #fff;
}

.header .search span {
    color: #fff;
}

.cart {
    background-color: #ec0c3c;
    float: right;
    height: 30px;
    width: 80px;
    text-align: center;
    line-height: 32px;
    border-radius: 4px;
}

/* 登录界面 */
.login {
    position: relative;
    z-index: 9999;
    margin: 100px auto;
    height: 300px;
    width: 600px;
    padding: 20px 50px;
    overflow: hidden;
}

.login .vip {
    width: 400px;
    margin: -20px auto 0;
    height: 60px;
    line-height: 60px;
}

.login .vip h1 {
    float: left;
    margin: 0;
}

.login .vip a {
    float: right;
    color: rgb(221, 58, 58);
    margin: 0 2px;
}

.login .vip a:hover {
    color: rgb(26, 79, 252);
}

.item {
    border: 1px solid #cad4e6;
    border-right: 0;
    box-sizing: border-box;
    outline: none;
    margin: 20px auto;
    width: 400px;
    height: 40px;
    line-height: 40px;
}


.item label {
    width: 60px;
    text-align: center;
    padding-left: 10px;
    float: left;
    color: #666;
    background-color: #dee1e6;
    border-right: 0;
}

.form a {
    display: block;
    width: 400px;
    height: 50px;
    margin-left: 50px;
    background-color: #ec0c3c;
    text-align: center;
    line-height: 50px;
    font-size: 16px;
    color: #fff;
    margin-top: 30px;
}

.item input {
    float: left;
    height: 40px;
    width: 334px;
    border: 1px solid #dee1e6;
    border-left: 0;
    margin-left: 4px;
    margin-top: -1px;
    color: #535353;
    padding-left: 5px;
    font-size: 13px;
}

/* 动画 */
.bear {
    width: 200px;
    height: 100px;
    position: relative;
    top: 20px;
    left: 0;
    background-color: pink;
    margin-bottom: 100px;
    background: url(../img/bear.png) no-repeat;
    animation: more .5s steps(8) infinite, w 4s forwards;
}

@keyframes more {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: -1600px 0;
    }
}

@keyframes w {
    0% {
        left: 0;
    }

    100% {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 底部部分 */
.footer {
    background-color: #c4c4c4;
    height: 60px;
    color: #36332e;
    font-size: 13px;
}

.footer .w {
    padding: 10px 4px;
}

.footer .w {
    padding: 10px 4px;
}

.footer a {
    color: #36332e;
}

.footer a:hover {
    color: #eb55f0;
}